﻿function select(item, submenuName, isSelect)
{            
    item.className = isSelect ? "menuitemselected" : "menuitem";
 
    var submenu = document.getElementById(submenuName);
    if ( submenu )
    {    
        submenu.style.display = isSelect ? "block" : "none";
    }
}

function subselect(item, isSelect)
{
     item.className = isSelect ? "submenutextselected" : "submenutext";
 }

 function toggleDemoSites() {
     if ($("#byType").css("display") == "none") {
         $("#byType").css("display", "block");
         $("#byLocation").css("display", "none");
         $("#ctl00_ContentPlaceHolder1_rdoMx1").prop('checked', true);
     }
     else if ($("#byLocation").css("display") == "none") {
         $("#byType").css("display", "none");
         $("#byLocation").css("display", "block");
         $("#ctl00_ContentPlaceHolder1_rdoHongkong").prop('checked', true);
     }
 }

